package club.easin;

import club.easin.enums.Exenum;

public class MYException extends RuntimeException {

    private String code;

    public MYException(String code,String message){
        super(message);
        this.code=code;
    }
    public MYException (Exenum exenum){
        super(exenum.getMessage());
        this.code=exenum.getCode();
    }
}
